package linkedlist;

import myexception.ListIndexOutOfBoundsException;
import singlelist.MySingList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Date: 2025-01-20
 * Time: 23:58
 */
public class Test {
    public static void main(String[] args) throws ListIndexOutOfBoundsException {
        MyLinkedList myLinkedList = new MyLinkedList();
//        myLinkedList.addLast(1);
//        myLinkedList.addLast(2);
//        myLinkedList.addLast(3);
//        myLinkedList.addLast(4);
        myLinkedList.addLast(5);
        myLinkedList.display();
        myLinkedList.remove(5);
        myLinkedList.display();
    }
}
